*****************
****2016 ANES****
*****************

**lib-con placement
*dem party = V161130, 1(lib) 7(con)
gen demlibcon16 = V161130
recode demlibcon16 -99/0=. 8/99=. 

*rep party = V161131 1(lib) 7(con)
gen replibcon16 = V161131
recode replibcon16 -99/0=. 8/99=. 

gen correctlibcon16 = 1 if demlibcon16 < replibcon16
replace correctlibcon16 = 0 if correctlibcon16==.

**spending
*dem party = V161179, 1(con) 7(lib)
gen demspend16 = V161179
recode demspend16 1=7 2=6 3=5 4=4 5=3 6=2 7=1 -99/0=. 8/99=.

*rep party = V161180 1(con) 7(lib)
gen repspend16 = V161180
recode repspend16 1=7 2=6 3=5 4=4 5=3 6=2 7=1 -99/0=. 8/99=.

gen correctspend16 = 1 if demspend16 < repspend16
replace correctspend16 = 0 if correctspend16==.

**defense
*dem party = V161182, 1(lib) 7(con)
gen demdefense16 = V161182
recode demdefense16 -99/0=. 8/99=.

*rep party = V161183, 1(lib) 7(con)
gen repdefense16 = V161183
recode repdefense16 -99/0=. 8/99=.

gen correctdefense16 = 1 if demdefense16 < repdefense16
replace correctdefense16 = 0 if correctdefense16==.

**health insurance 
*dem party = V161185, 1(lib) 7(con)
gen demhealth16 = V161185
recode demhealth16 -99/0=. 8/99=.

*rep party = V161186, 1(lib) 7(con)
gen rephealth16 = V161186
recode rephealth16 -99/0=. 8/99=.

gen correcthealth16 = 1 if demhealth16 < rephealth16
replace correcthealth16 = 0 if correcthealth16==.


**office recognition
*speaker = V162073a
gen knowspeaker16 = (V162073a==1)
*VP = V162072
gen knowvp16 = (V162072==1)
*germ chancellor = V162074a
gen knowpm16 = (V162074a==1)
*chief justice = V162074a
gen knowchief16= (V162074a==1)

**party control
*house = V161515 (1 - Dem) (2 - Rep)
gen corrrecthouse16 = (V161515==2)

*senate = V161516 (1 - Dem) (2 - Rep)
gen correctsenate16 = (V161516==2)

